<?php

namespace App\Http\Controllers\OA;

use App\Http\Controllers\Controller;
use App\Http\Controllers\Logic\CompanyLogic;
use Illuminate\Http\Request;

/**
 * Class InputController
 * @package App\Http\Controllers\OA
 * @desc 获取页面下拉框的信息
 */
class InputController extends Controller
{
        //公司信息
        public function companys(Request $request)
        {
            $companys = CompanyLogic::getCompanys();
            ret_json('ok','ok',$companys);
        }

        //通过公司获取部门信息
        public function getDepts(Request $request)
        {
            $depts = CompanyLogic::getDepts($request->all());
            ret_json('ok','ok',['depts'=>$depts]);
        }


}
